/*
 * Main.fx
 *
 * Created on 08.05.2010, 13:41:49
 */

package javafx191labs.dnikitin.lab01;

import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.text.Text;
import javafx.scene.text.Font;
import javafx.scene.shape.Rectangle;
import javafx.scene.paint.Color;
import javafx.scene.paint.RadialGradient;
import javafx.scene.paint.Stop;
import javafx.scene.shape.Circle;
import javafx.scene.shape.Polyline;
import javafx.scene.shape.Line;
import javafx.scene.paint.LinearGradient;

/**
 * @author DNG
 */

Stage {
    title: "SAMSUNG - WITU"
    scene: Scene {
        width: 280
        height: 590
        content: [
            
         Rectangle {  //Обводка корпуса
	 x: 5, y: 5
	 width: 270, height: 510
	 fill: RadialGradient {
	centerX: 3
	centerY: 2
	focusX: 0.7
	focusY: 0.7
	radius: 5
	stops: [
		Stop {
			color : Color.BLACK
			offset: 0.0
		},
		Stop {
			color : Color.BLUE
			offset: 1.0
		},

                ]
                                }

         arcHeight: 15
         arcWidth: 15
        }
         Rectangle //Корпус
         {  x: 10, y: 10
            width: 260, height: 480
            fill: Color.DARKGRAY
            arcHeight: 20
            arcWidth: 20
         }
         Rectangle {  //Экран
	 x: 20, y: 50
	 width: 240, height: 370
	 fill: LinearGradient {
	startX : 0.0
	startY : 0.0
	endX : 0.0
	endY : 1.0
	stops: [
		Stop {
			color : Color.WHITE
			offset: 0.0
		},
		Stop {
			color : Color.BLUE
			offset: 0.5
		},
                Stop {
	                color : Color.RED
	                offset: 1.0
                },


	]
}


         arcHeight: 10
         arcWidth: 10
}
        Text {
                font : Font {
                    size : 14


                }
                 fill: Color.BLACK
                x: 29
                y: 42
                content: "8 GB"
            }
        Circle {//Встроенная камера
	centerX: 240, centerY: 25
	radius: 8
	fill: Color.BLACK
}
        Circle { //Встроенная камера
	centerX: 240, centerY: 25
	radius: 4
	fill: Color.GRAY
}
        Rectangle {//Дырка динамика
	x: 105, y: 10
	width: 70, height: 10
	fill: Color.LIGHTGRAY
        arcHeight: 5
        arcWidth: 5
}
Text {
                font : Font {
                    size : 18


                }
                 fill:Color.BLACK
                x: 95
                y: 440
                content: "SAMSUNG"
            }
        Rectangle {//Кнопочная панель (снизу)
	x: 12, y: 440
	width: 256, height: 48
	fill:Color.GRAY
        arcHeight: 20
        arcWidth: 20
}
        Rectangle {//Закрашивание верхней части прошлого кнопочной панели
	x: 12, y: 440
	width: 256, height: 10
	fill: Color.DARKGRAY
        }
        Polyline { // Взять трубку
	points : [ 30,470 , 30,462, 60,462, 60, 470 ]
	strokeWidth: 2.0
	stroke: Color.LIGHTGRAY
                 }
        Polyline {// Положить трубку
	points : [ 220,470 , 220,462, 250,462, 250, 470 ]
	strokeWidth: 2.0
	stroke: Color.LIGHTGRAY
                 }
        Line { // Нижняя часть положить трубку
	startX: 230, startY: 470
	endX: 240, endY: 470
	strokeWidth: 2
	stroke: Color.LIGHTGRAY
}
        Rectangle {
	x: 120, y: 455
	width: 30, height: 30
	fill: RadialGradient {
	centerX: 5
	centerY: 5
	focusX: 0.1
	focusY: 0.1
	radius: 10
	stops: [
		Stop {
			color : Color.BLACK
			offset: 0.0
		},
		Stop {
			color : Color.DARKGRAY
			offset: 1.0
		},

	]
}


         arcHeight: 5
        arcWidth: 5
}

        ]
    }
}